import { baseUrlConfig } from '@/config/config';
import request from '@/utils/request'

const bastPath = baseUrlConfig.processBaseUrl

export const getGoodsRegFind = (data: any) => {
  return request({
    url: bastPath + '/lose/goodsReg/find',
    method: 'post',
    data
  })
}
export const getGoodsRegList = (data: any) => {
  return request({
    url: bastPath + '/lose/goodsReg/find/page',
    method: 'post',
    data
  })
}

export const getGoodsRegAcceptList = (data: any) => {
  return request({
    url: bastPath + '/lose/goodsReg/accept/list',
    method: 'post',
    data
  })
}

// 捡拾物品详情
export const pickUpGoodsDetail = (data: { regId: string, taskId: string }) => {
  return request({
    url: bastPath + '/lose/goodsReg/detail',
    method: 'post',
    data
  })
}

/** 领取拾物品 */
export const receiveGoodsReg = (data: any) => {
  return request({
    url: bastPath + '/lose/goodsReg/receive',
    method: 'post',
    data
  })
}